projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07821dd
)
(detect_coding_system): Fix handling of null_byte_fount.
author
Kenichi Handa
<handa@m17n.org>
Thu, 15 Jan 2009 07:09:26 +0000
(07:09 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 15 Jan 2009 07:09:26 +0000
(07:09 +0000)
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index 21c594543469056c5e51a1fdceb5ceed00db6fec..8c7ddf34db29141faa09240baeb2feb1d0b67cad 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-7905,10
+7905,11
@@
detect_coding_system (src, src_chars, src_bytes, highest, multibytep,
}
}
- if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY)
+ if ((detect_info.rejected & CATEGORY_MASK_ANY) == CATEGORY_MASK_ANY
+ || null_byte_found)
{
detect_info.found = CATEGORY_MASK_RAW_TEXT;
- id =
coding_categories[coding_category_raw_text].id
;
+ id =
CODING_SYSTEM_ID (Qno_conversion)
;
val = Fcons (make_number (id), Qnil);
}
else if (! detect_info.rejected && ! detect_info.found)